
import React, { Component } from 'react';
import ReactDOM from 'react-dom'
import Editor from 'for-editor'
// 这个是markdown插件
// https://github.com/kkfor/for-editor
export default class MarkDown extends Component{
    constructor() {
        super()
        this.state = {
          value: ''
        }
      }
     
      handleChange(value) {
        this.setState({
          value
        })
      }
     
      render() {
        const { value } = this.state
        return (
          <Editor value={value} preview={true} subfield={true} onChange={this.handleChange.bind(this)} />
        )
      }
}